    	<div class="position">当前位置：<a href="<?php echo Yii::app()->createUrl('member/index/index');?>"><?php echo t('Member','web') ?></a> &gt; <a href="<?php echo Yii::app()->createUrl('member/index/refund');?>">客户服务</a> &gt; 售后管理</div>
        <div class="hr_15"></div>
		<div class="steps">
            <ul class="fs_14 c_f">
                <li class="cur first"><span class="one">第一步,买家申请退款</span></li>
                <li class=""><span class="two">第二步，卖家处理退款申请</span></li>
                <li class="last"><span class="three">第三步，退款成功</span></li> 
            </ul>
        </div>
        <div class="hr_20"></div>
        <!--售后管理 start-->
        <div class="refund_box step_box">
        <?php if($model->zr_order_status == 1){?>
        	<!--未发货退款  start-->
        	<div class="step_info ">
            	<div class="step_status">
                	<div class="status">
                        <p><span class="ico_big ico_done"></span><strong class="fs_14">退款成功申请，等待卖家处理。</strong></p>
                        <p class="c_999">提示：如果卖家在 4 天 0 时 0分 0 秒之内没有处理退款订单，系统将自己处理买家申请</p>
                        <p class="link"><a class="mem_btn mem_btn05" href="javascript:" title="">修改申请</a><input class="mem_btn mem_btn08" type="button" name="" value="取消退款" /></p>
                    </div>
                </div>
                <ul class="form_list">
                    <li><span class="tit">退款编号：</span><span><?php echo $model->zr_id;?></span></li>
                    <li><span class="tit">申请退款时间：</span><span><?php echo date('Y-m-d H:i:s',$model->inputtime);?></span></li>
                    <li><span class="tit">退款类型：</span><span>(无此项)</span></li>
                    <li><span class="tit">退款状态：</span><span>等待卖家处理</span></li>
                    <li><span class="tit">需要退款金额：</span><span><strong class="c_f60"><?php echo $model->zr_amount;?></strong> 元</span></li>
                    <li><span class="tit">退款原因：</span><span><?php echo $this->refundReason[$model->zr_reason];?></span></li>
                    <li><span class="tit">退款说明：</span><span><?php echo $model->zr_content;?></span></li>
                </ul>           
            </div>
            <!--未发货退款  end -->
            <!--已发货退款  start-->
		<?php }elseif(!$model->zr_return || !$model->zr_cmp_time){?>
            <div class="step_info">
            	<div class="step_status">
                	<div class="status">
                        <p><span class="ico_big ico_done"></span><strong class="fs_14">退款申请成功，等待卖家处理。</strong><strong class="fs_14 d_n">卖家同意退款！请买家发货</strong></p>
                        <p class="c_999">如果卖家在 4 天 0 小时 0 分 0 秒 内没有进行退款处理，系统将自动把退款金额退到买家帐户！</p>
                        <p class="c_999">如果买家在 4天 0 小时 0 分 0 秒之内未把货发给卖家，本次退款申请将自动取消！</p>
                        <p class="link"><a class="mem_btn mem_btn05" href="javascript:" title="">修改申请</a></p>
                    </div>
                </div>
                <ul class="form_list">
                    <li><span class="tit">退款编号：</span><span><?php echo $model->zr_id;?></span></li>
                    <li><span class="tit">申请退款时间：</span><span><?php echo date('Y-m-d H:i:s',$model->inputtime);?></span></li>
                    <li><span class="tit">退款类型：</span><span>(无此项)</span></li>
                    <li><span class="tit">退款状态：</span><span>等待卖家处理</span></li>
                    <li><span class="tit">需要退款金额：</span><span><strong class="c_f60"><?php echo $model->zr_amount;?></strong> 元</span></li>
                    <li><span class="tit">退款原因：</span><span><?php echo $this->refundReason[$model->zr_reason];?></span></li>
                    <li><span class="tit">退款说明：</span><span><?php echo $model->zr_content;?></span></li>
                    <li class="c_f"><span class="tit f_l">退款凭证：</span>
                        <div class="cert_img f_l">
                            <ul class="c_f">
                            <?php 
								for($i=0; $i<3; $i++){
									if(isset($model->zr_user_pic[$i])){
										echo '<li><img src="'.$model->zr_user_pic[$i].'" alt="" /></li>';
									}else{
										echo '<li><img src="/images/cert_img.jpg" alt="" /></li>';
									}
								}
							?>
                            </ul>
                        </div>
                    </li>
                </ul>           
            </div>
		<?php }elseif($model->zr_return && $model->zr_pay_status==3 && !$model->zr_exp_code){?>
            <div class="step_info">
            	<div class="step_status">
                	<div class="status">
                        <p><span class="ico_big ico_done"></span><strong class="fs_14">卖家同意退款，请买家发货。</strong><strong class="fs_14 d_n">卖家同意退款！请买家发货</strong></p>
                        <p class="link"><a class="mem_btn mem_btn05" href="/member/index/shipment/refundid/<?php echo $model->zr_id;?>" title="">立即发货</a></p>
                    </div>
                </div>
                <ul class="form_list">
                    <li><span class="tit">退款编号：</span><span><?php echo $model->zr_id;?></span></li>
                    <li><span class="tit">申请退款时间：</span><span><?php echo date('Y-m-d H:i:s',$model->inputtime);?></span></li>
                    <li><span class="tit">退款类型：</span><span>(无此项)</span></li>
                    <li><span class="tit">退款状态：</span><span>等待卖家处理</span></li>
                    <li><span class="tit">需要退款金额：</span><span><strong class="c_f60"><?php echo $model->zr_amount;?></strong> 元</span></li>
                    <li><span class="tit">退款原因：</span><span><?php echo $this->refundReason[$model->zr_reason];?></span></li>
                    <li><span class="tit">退款说明：</span><span><?php echo $model->zr_content;?></span></li>
                    <li class="c_f"><span class="tit f_l">退款凭证：</span>
                        <div class="cert_img f_l">
                            <ul class="c_f">
                            <?php 
								for($i=0; $i<3; $i++){
									if(isset($model->zr_user_pic[$i])){
										echo '<li><img src="'.$model->zr_user_pic[$i].'" alt="" /></li>';
									}else{
										echo '<li><img src="/images/cert_img.jpg" alt="" /></li>';
									}
								}
							?>
                            </ul>
                        </div>
                    </li>
                </ul>           
            </div>
		<?php }elseif($model->zr_return && $model->zr_pay_status==3 && $model->zr_exp_code){?>
            <div class="step_info">
            	<div class="step_status">
                	<div class="status">
                        <p><span class="ico_big ico_done"></span><strong class="fs_14">买家已发货，等待卖家确认</strong><strong class="fs_14 d_n">卖家同意退款！请买家发货</strong></p>
                    </div>
                </div>
                <ul class="form_list">
                    <li><span class="tit">退款编号：</span><span><?php echo $model->zr_id;?></span></li>
                    <li><span class="tit">申请退款时间：</span><span><?php echo date('Y-m-d H:i:s',$model->inputtime);?></span></li>
                    <li><span class="tit">退款类型：</span><span>(无此项)</span></li>
                    <li><span class="tit">退款状态：</span><span>等待卖家处理</span></li>
                    <li><span class="tit">需要退款金额：</span><span><strong class="c_f60"><?php echo $model->zr_amount;?></strong> 元</span></li>
                    <li><span class="tit">退款原因：</span><span><?php echo $this->refundReason[$model->zr_reason];?></span></li>
                    <li><span class="tit">退款说明：</span><span><?php echo $model->zr_content;?></span></li>
                    <li class="c_f"><span class="tit f_l">退款凭证：</span>
                        <div class="cert_img f_l">
                            <ul class="c_f">
                            <?php 
								for($i=0; $i<3; $i++){
									if(isset($model->zr_user_pic[$i])){
										echo '<li><img src="'.$model->zr_user_pic[$i].'" alt="" /></li>';
									}else{
										echo '<li><img src="/images/cert_img.jpg" alt="" /></li>';
									}
								}
							?>
                            </ul>
                        </div>
                    </li>
                </ul>           
            </div>
        <?php }?>
            <!--已发货退款  end -->
            <table class="list_table" cellpadding="0" cellspacing="0" width="100%">
            	<tr>
                	<th width="35%">宝贝信息</th>
                    <!-- <th width="15%">卖家</th> -->
                    <th width="12%">单价（元）</th>
                    <th width="12%">数量</th>
                    <th width="14%">优惠</th>
                    <th width="12%">小计（元）</th>
                </tr>
                <tr>
                	<td class="pro tl">
                    	<div class="c_img c_img50"><a href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$product['zp_id']));?>" title="" target="_blank"><img width="50" height="50" src="<?php echo $product->zp_pic; ?>" alt="" /></a></div>
                   		<p class="title_pro"><a class="c_06c" href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$product['zp_id']));?>" title="<?php echo $product['zp_name'];?>" target="_blank"><?php echo $product['zp_name'];?></a></p>
                    </td>
                    <!-- <td><a class="c_06c" href="<?php //echo Company::createCompanyUrl($product->company->zc_sub_domain);?>" title=""><?php //echo $product->company->zc_name;?></a></td> -->
                    <td><?php echo $ordproduct->zop_real_price;?></td>
                    <td><?php echo $ordproduct->zop_nums;?></td>
                    <td>
                    	<?php 
							foreach($discount as $key=>$value){
								echo OrdDiscount::getDiscountType($value->zod_type).'：-'.$value->zod_price.'</br>';
							}
						?>
                    </td>
                    <td><span class="fw_b fs_14 c_f60"><?php echo $ordproduct->zop_real_price*$ordproduct->zop_nums;?></span></td>
                </tr>
            </table>
        </div>    
    	<!--售后管理 end-->